import request from "@/utils/request";

// 查询粘接接头信息列表
export function listSplice(query) {
  return request({
    url: "/system/splice/list",
    method: "get",
    params: query,
  });
}

// 查询粘接接头信息详细
export function getSplice(id) {
  return request({
    url: "/system/splice/" + id,
    method: "get",
  });
}

// 新增粘接接头信息
export function addSplice(data) {
  return request({
    url: "/system/splice",
    method: "post",
    data: data,
  });
}

// 修改粘接接头信息
export function updateSplice(data) {
  return request({
    url: "/system/splice",
    method: "put",
    data: data,
  });
}

// 删除粘接接头信息
export function delSplice(id) {
  return request({
    url: "/system/splice/" + id,
    method: "delete",
  });
}

// 粘接接头涉及产品三级目录
export function getModel(query) {
  return request({
    url: "/system/splice/getModel",
    method: "get",
    params: query,
  });
}
